//
//  AllDownloadVC.m
//  ImGuider
//
//  Created by 李陆涛 on 2018/1/26.
//  Copyright © 2018年 imguider. All rights reserved.
//

#import "AllDownloadVC.h"
#import "AccountDownloadVC.h"

@interface AllDownloadVC ()

@end

@implementation AllDownloadVC

- (void)viewDidLoad {
    [super viewDidLoad];

    self.title = MYLocalizedString(@"ACCOUNT_DOWNLOAD", nil);
    
    self.isHiddenBootomBar = YES;
    
    AccountDownloadVC *lineVC = [IGUtil loadViewController:@"AccountDownloadVC" storyboard:@"Account"];
    AccountDownloadVC *specialVC = [IGUtil loadViewController:@"AccountDownloadVC" storyboard:@"Account"];
    specialVC.pageType = 1;
    
    [self setupWithNavTitles:@[MYLocalizedString(@"HOME_RECORD", nil),MYLocalizedString(@"HOME_THEME", nil)] PageVcClass:@[lineVC,specialVC]];
    
//    [self rightBarButton:@"删除" color:[UIColor blackColor] selector:@selector(showDeleteView)];
    [self rightBarButtonWithImageName:@"删除" selector:@selector(showDeleteView)];
}

- (void)showDeleteView {
    
    AccountDownloadVC *vc = self.currentVC;
    
    if ([vc isKindOfClass:[AccountDownloadVC class]]) {
        [vc showDeleteView];
    }
}


@end
